package com.zst.http.forward;

import com.zst.http.forward.configuration.ForwardServerProperties;
import com.zst.http.forward.remote.NativeByteForwardHandler;
import com.zst.http.forward.server.ForwardServer;

import java.util.concurrent.locks.LockSupport;

public class MockedServer {
    public static void main(String[] args) {
        ForwardServerProperties props = new ForwardServerProperties();
        props.setPort(8333);
        props.setEnable(true);

        ForwardServer server = new ForwardServer(props,
                new NativeByteForwardHandler(() -> "http://localhost:8081/media-service"));
        LockSupport.park();
    }
}
